Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ingest Manager] Fix DEB\RPM packages #20986

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

michalpristas
Copy link
Contributor

What does this PR do?

We were experiencing issues with improper permissions and config flag getting overwritten [window] or not propagated[linux]

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ingest-management (Team:Ingest Management)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Sep 4, 2020
Copy link
Contributor

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@ph
Copy link
Contributor

ph commented Sep 4, 2020

@michalpristas is this only affect master?

@michalpristas
Copy link
Contributor Author

@ph yes backport was not merged yet

@elasticmachine
Copy link
Collaborator

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20986 opened]

  • Start Time: 2020-09-04T13:54:24.582+0000

  • Duration: 69 min 3 sec

Test stats 🧪

Test Results
Failed 0
Passed 17748
Skipped 1821
Total 19569

Steps errors

Expand to view the steps failures

  • Name: Mage build test
    • Description: mage build test

    • Duration: 5 min 2 sec

    • Start Time: 2020-09-04T14:23:45.656+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-04T15:02:41.736Z] + tar -xpf source.tgz
[2020-09-04T15:02:54.345Z] + rm source.tgz
[2020-09-04T15:02:54.371Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats
[2020-09-04T15:02:54.422Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Lint
[2020-09-04T15:02:54.590Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-09-04T15:02:54.755Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-09-04T15:02:54.919Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-09-04T15:02:55.096Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-09-04T15:02:55.269Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Winlogbeat-oss
[2020-09-04T15:02:55.537Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-09-04T15:02:55.699Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-09-04T15:02:55.862Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/dockerlogbeat
[2020-09-04T15:02:56.022Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-09-04T15:02:56.182Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Journalbeat
[2020-09-04T15:02:56.341Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-09-04T15:02:56.500Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-09-04T15:02:56.660Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-09-04T15:02:56.821Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-09-04T15:02:56.980Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-09-04T15:02:57.138Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Libbeat-oss
[2020-09-04T15:02:57.294Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Packetbeat-Linux
[2020-09-04T15:02:57.482Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-09-04T15:02:57.820Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-09-04T15:02:58.168Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-09-04T15:02:58.508Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-09-04T15:02:58.831Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Heartbeat-oss
[2020-09-04T15:02:59.001Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-09-04T15:02:59.160Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-09-04T15:02:59.321Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-09-04T15:02:59.478Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-09-04T15:02:59.645Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Heartbeat-Windows
[2020-09-04T15:02:59.814Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-09-04T15:03:00.069Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-09-04T15:03:00.228Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-09-04T15:03:00.391Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Libbeat-x-pack
[2020-09-04T15:03:00.550Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-09-04T15:03:00.710Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-09-04T15:03:00.871Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Filebeat-Windows
[2020-09-04T15:03:01.040Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Functionbeat-Windows
[2020-09-04T15:03:01.200Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Packetbeat-Windows
[2020-09-04T15:03:01.358Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-09-04T15:03:01.519Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-Windows
[2020-09-04T15:03:01.683Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-09-04T15:03:01.846Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-09-04T15:03:02.007Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Filebeat-x-pack
[2020-09-04T15:03:02.168Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Filebeat-oss
[2020-09-04T15:03:02.336Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-09-04T15:03:02.497Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-09-04T15:03:02.662Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-09-04T15:03:03.191Z] + cat
[2020-09-04T15:03:03.191Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-04T15:03:03.192Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-04T15:03:09.796Z] runbld>>> runbld started
[2020-09-04T15:03:09.796Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-04T15:03:12.350Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-04T15:03:12.350Z] runbld>>> Matches in the system config:
[2020-09-04T15:03:12.350Z] runbld>>> - Matched ^elastic\+beats
[2020-09-04T15:03:12.350Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-04T15:03:13.294Z] runbld>>> Debug logging enabled.
[2020-09-04T15:03:13.557Z] runbld>>> Storing result
[2020-09-04T15:03:13.557Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-04T15:03:13.557Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200904150313-11F95C59
[2020-09-04T15:03:13.557Z] runbld>>> Adding system facts.
[2020-09-04T15:03:14.944Z] runbld>>> Adding vcs info for the latest commit:  ae4b4e8fe187ac9518086f0b4d0cdff166a9e15b
[2020-09-04T15:03:14.944Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-04T15:03:14.944Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-04T15:03:14.944Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-04T15:03:14.944Z] Processing JUnit reports with runbld...
[2020-09-04T15:03:15.206Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-04T15:03:15.206Z] runbld>>> DURATION: 23ms
[2020-09-04T15:03:15.206Z] runbld>>> STDOUT: 40 bytes
[2020-09-04T15:03:15.206Z] runbld>>> STDERR: 49 bytes
[2020-09-04T15:03:15.206Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-04T15:03:15.206Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20986
[2020-09-04T15:03:16.150Z] runbld>>> Storing build metadata: 
[2020-09-04T15:03:16.150Z] runbld>>> Adding test report.
[2020-09-04T15:03:16.150Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats
[2020-09-04T15:03:17.096Z] runbld>>> Found 138 test output files
[2020-09-04T15:03:19.660Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-04T15:03:19.660Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-04T15:03:19.660Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-04T15:03:19.660Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-04T15:03:19.660Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-04T15:03:20.235Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-04T15:03:20.235Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20986/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-09-04T15:03:20.498Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 19416 Skipped: 1561
[2020-09-04T15:03:20.761Z] runbld>>> Storing result
[2020-09-04T15:03:20.761Z] runbld>>> FAILURES: 0
[2020-09-04T15:03:20.761Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-04T15:03:20.761Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200904150313-11F95C59
[2020-09-04T15:03:21.023Z] runbld>>> Email notification disabled by environment variable.
[2020-09-04T15:03:21.023Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-04T15:03:26.569Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20986
[2020-09-04T15:03:26.759Z] [INFO] getVaultSecret: Getting secrets
[2020-09-04T15:03:26.852Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-04T15:03:27.969Z] + chmod 755 generate-build-data.sh
[2020-09-04T15:03:27.969Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20986/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20986/runs/1 FAILURE 4143113
[2020-09-04T15:03:27.969Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20986/runs/1/steps/?limit=10000 -o steps-info.json
[2020-09-04T15:03:30.453Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20986/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-09-04T15:03:30.453Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20986/runs/1/log/ -o pipeline-log.txt

@ph ph merged commit 157c286 into elastic:master Sep 4, 2020
michalpristas added a commit to michalpristas/beats that referenced this pull request Sep 5, 2020
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants